package de.maedn.main.server;

import java.util.HashMap;
import java.util.Map;
import org.json.simple.*;

public class User implements JSONAware {
	private String account;
	private String name;
	
	public User(String account, String name) {
		this.account = account;
		this.name = name;
	}

	public String toJSONString() {
		/*JSONObject object = new JSONObject();
		object.put("account", account);
		object.put("name", name);
		return JSONValue.toJSONString(object);*/
		Map<String, Object> map = new HashMap<String, Object>();
		//Map map = new HashMap();
		map.put("account", account);
		map.put("name", name);
		return JSONValue.toJSONString(map);
	}

}

